package constructor;

public class Student {
    String name;
    int age;
    char sex;
   //无参数
    public Student()
    {
        System.out.println("调用了无参数");
    }
    //有参数
    public Student(String name,int age)
    {
        System.out.println("调用了有参数构造器");
    }

    public Student(String name,int age, char sex)
    {
        this.name = name;
        this.age = age;
        this.sex = sex;
    }
}
